<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<meta name="generator" content="Adobe GoLive 6">
		<title>Fit Builder Help</title>
	</head>

	<body bgcolor="#ffffff">
		<div align="center">
			<div align="center">
				<p><font size="+2" color="#708090" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>Fit Builder Help</b></font></p>
			</div>
			<p align="left"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">The Fit Builder enables users to define mathematical <strong>fit functions</strong> to be compared with experimental data. The closeness of a fit is quantified by determining the rms deviation between the fit function and the data points. Typically, a fit is optimized by varying <strong>parameters</strong> of the function to minimize the rms deviation. </font></p>
		</div>
		<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Functions and parameters are defined by entering expressions that are &quot;parsed&quot; (interpreted) by the OSP parser. The values of parameters are constants while those of functions depend on input variables such as x, y, t, etc. The parser recognizes the following elements:</font></p>
		<ul>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Numbers </strong>in decimal or scientific notation (e.g., 1.0E-3)</font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Names</strong> of parameters, functions and other input variables </font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Constants</strong> e and pi</font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Arithmetic operators</strong> + - * / ^ </font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Boolean operators</strong> = &gt; &lt; &lt;= &gt;= &lt;&gt; &amp; | ! </font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Parentheses</strong> to control order of operation</font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>Mathematical functions</strong> shown in Table 1</font>
			<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><strong>If statements</strong> in the form <em>if(conditional statement, expression1, expression2)</em>. Expression1 is evaluated if the conditional statement is true and expression2 is evaluated if it is false. For example, if (x &lt; 0, x^2, -x^2) is a valid function expression.</font>
		</ul>
		<div align="center">
			<table width="236" border="1" cellspacing="0" cellpadding="2">
				<tr>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">abs(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">acos(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">acosh(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">asin(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">asinh(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">atan(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">atanh(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">atan2(x,y)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">ceil(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">cos(x)</font></td>
				</tr>
				<tr>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">cosh(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">exp(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">frac(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">floor(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">int(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">log(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">max(x,y)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">min(x,y)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">mod(x,y)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">random(x)</font></td>
				</tr>
				<tr>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">round(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">sign(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">sin(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">sinh(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">sqr(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">sqrt(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">step(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">tan(x)</font></td>
					<td><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">tanh(x)</font></td>
					<td></td>
				</tr>
			</table>
		</div>
		<div align="left">
			<div align="center">
				<p><font size="-1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>Table 1 Mathematical functions recognized by the OSP Parser</b></font></p>
			</div>
			<p align="center"><font size="+1" color="#708090" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>How to use Fit Builder</b></font><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b> </b></font></p>
		</div>
		<div align="center">
			<p align="left"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">The Fit Builder displays fit functions and their associated parameters in tables with <strong>Name</strong> and <strong>Expression</strong> columns. The name of the fit is shown in bold font in the function table. </font></p>
		</div>
		<div align="left">
			<div align="left">
				<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To edit a name or expression, double-click its table cell (gray cells cannot be edited). Names must be unique and can contain no spaces or mathematical symbols. Expressions must be valid mathematical expressions parsable by the OSP parser.</font></p>
				<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To create a new parameter or function, click the appropriate <strong>Add</strong> button. </font></p>
			</div>
			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">When editing an expression, the names of all available variables are listed in blue in the status bar below the tables. Variables for parameter expressions include only other parameters, while variables for function expressions also include independent variables (e.g., t or x) and support function names. For example, if the parameters &quot;v0&quot; and &quot;g&quot; are defined and the independent (x-axis) variable is &quot;t&quot;, then the entry &quot;v0*t - 0.5*g*t^2&quot; is a valid function expression.</font></p>
			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">If an invalid expression is entered into a cell the cell turns red and an error message is displayed in the status bar. For example, the expression &quot;v0t - 0.5gt^2&quot; is invalid since the multiplication operators (*) have been omitted. Circular references also result in an error condition.</font></p>
			<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">The Fit Builder includes several features designed to help users build, modify and compare functions quickly:</font></div>
		<div align="center">
			
		</div>
		<div align="left">
			<div align="left">
				<ol>
					<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Complex expressions can be simplified by defining one or more <strong>support functions</strong>. For example, suppose you wish to define a sinusoidal function for which the amplitude decreases exponentially. Using a separate function to define the time-dependent amplitude makes the damped oscillation function easier to write and understand.</font>
					<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">All edits are <strong>undoable</strong> and <strong>redoable</strong> making it easy to quickly flip back and forth between two function expressions or parameter values. </font>
					<li><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">Single or multiple table rows can be copied or cut to the clipboard for <strong>pasting</strong> into other tables. </font>
					<li><font face="Arial, Helvetica, Geneva, Swiss, SunSans-Regular">Variables names in the status bar turn red when the mouse is moved over them and can then be inserted directly into expressions by <strong>clicking</strong> them.</font>
				</ol>
			</div>
		</div>
	</body>

</html>